// 定义变量
@electronicFontPath: "../font/DS-DIGIT.TTF";
@bgImagePath: "../images/background5.jpg";
@headBgImagePath: "../images/head_bg.png";
@lineImagePath: "../images/line.png";
@panelBorderColor: rgba(25, 186, 139, 0.17);
@panelBorderHighlightColor: rgba(25, 186, 139, 0.8);
@textColor: #fff;
@highlightColor: #ffeb7b;
@secondaryTextColor: rgba(255, 255, 255, 0.7);
@chartTitleColor: blue;

// 引入字体
@font-face {
  font-family: electronicFont;
  src: url(@electronicFontPath);
}

// 全局样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url(@bgImagePath) no-repeat top center;
  background-size: cover;
  line-height: 1.15;
}

// 头部样式
header {
  position: relative;
  height: 80px;
  background: url(@headBgImagePath) no-repeat;
  background-size: cover;

  h1 {
    font-size: 0.475rem;
    color: @textColor;
    text-align: center;
    line-height: 1rem;
  }

  .showTime {
    position: absolute;
    right: 0.375rem;
    top: 0;
    line-height: 0.9375rem;
    color: @secondaryTextColor;
    font-size: 0.25rem;
  }
}

// 主容器样式
.mainbox {
  display: flex;
  min-width: 1024px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.125rem 0.125rem 0;

  .left-column,
  .middle-column,
  .right-column {
    flex: 3;
  }

  .middle-column {
    margin: 0 0.125rem 0.1875rem;
  }
}

// 面板边框闪烁动画
@keyframes borderFlash {
  0% {
    border-color: @panelBorderColor;
  }
  50% {
    border-color: @panelBorderHighlightColor;
  }
  100% {
    border-color: @panelBorderColor;
  }
}

// 面板样式
.panel {
  position: relative;
  padding: 0 0.1875rem 0.5rem;
  border: 1px solid @panelBorderColor;
  margin-bottom: 0.1875rem;
  background: url(@lineImagePath) rgba(255, 255, 255, 0.03);
  animation: borderFlash 1.5s infinite;

  &::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #02a6b5;
    border-left: 2px solid #02a6b5;
    content: "";
  }

  &::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #02a6b5;
    border-right: 2px solid #02a6b5;
    content: "";
  }

  .panel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    &::before {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 10px;
      height: 10px;
      border-bottom: 2px solid #02a6b5;
      border-left: 2px solid #02a6b5;
      content: "";
    }

    &::after {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 10px;
      height: 10px;
      border-bottom: 2px solid #02a6b5;
      border-right: 2px solid #02a6b5;
      content: "";
    }
  }

  h2 {
    height: 0.6rem;
    color: @chartTitleColor; // 标题字体颜色改为蓝色
    line-height: 0.6rem;
    text-align: center;
    font-size: 0.25rem;
    font-weight: 400;
  }

  .chart {
    height: 3rem;
  }
}

// 数据展示框样式
.no,
.nom {
  background: rgba(101, 132, 226, 0.1);
  padding: 0.1875rem;

  .no-hd,
  .nom-hd {
    position: relative;
    border: 1px solid @panelBorderColor;

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      width: 30px;
      height: 10px;
      border-top: 2px solid #02a6b5;
      border-left: 2px solid #02a6b5;
      content: "";
    }

    &::after {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 30px;
      height: 10px;
      border-bottom: 2px solid #02a6b5;
      border-right: 2px solid #02a6b5;
      content: "";
    }

    ul {
      display: flex;

      li {
        position: relative;
        flex: 1;
        line-height: 1.2rem;
        font-size: 0.475rem;
        color:blue;
        text-align: center;
        font-family: electronicFont;
        list-style: none;

        &::after {
          content: "";
          position: absolute;
          top: 25%;
          right: 0;
          height: 50%;
          width: 2px;
          background: rgba(255, 255, 255, 0.2);
        }
      }
    }
  }

  .no-bd,
  .nom-bd {
    ul {
      display: flex;

      li {
        flex: 1;
        text-align: center;
        color: blue;
        font-size: 0.225rem;
        height: 0.5rem;
        line-height: 0.5rem;
        padding-top: 0.125rem;
        list-style: none;
      }
    }
  }
}

// 地图样式
.map {
  position: relative;
  height: 7.75rem;

  .echart {
    position: absolute;
    top: 0.6rem;
    left: 0;
    width: 100%;
    height: calc(7.75rem - 0.6rem);
  }
}

// 中间列第一个面板的特殊样式
.mainbox .middle-column .panel:first-child {
  margin-top: calc(1.2rem + 0.5rem + 0.1875rem + 20px);
}